package com.th.cash.th2.login

import com.th.basemodel.base.BaseRepository
import com.th.basemodel.bean.OkResult
import com.th.basemodel.ext.extRequestHttp
import com.th.cash.http.AppRetrofit

class LoginRepository : BaseRepository() {
    suspend fun sendSms(request: SendSmsRequest): OkResult<SendSmsResponse> {
        return extRequestHttp {
            AppRetrofit.loginService.sendSms(request)
        }
    }

    suspend fun login(request: LoginRequest): OkResult<LoginResponse> {
        return extRequestHttp {
            AppRetrofit.loginService.login(request)
        }
    }
}